#version 400
#extension GL_ARB_separate_shader_objects : enable
#extension GL_ARB_shading_language_420pack : enable
layout (std140,set = 0, binding = 0) uniform bufferVals { //一致变量块
    float brightFactor; //亮度调节系数
} myBufferVals;
layout (set = 1, binding = 0) uniform sampler3D tex; //3D 纹理采样器，代表一幅 3D 纹理
layout (location = 0) in vec3 inTexCoor; //接收的纹理坐标
layout (location = 0) out vec4 outColor; //输出到管线的片元颜色
void main() { //主方法
    outColor=myBufferVals.brightFactor*textureLod(tex,inTexCoor, 0.0); //计算最终颜色值
}
